<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddWangguiColumnToOpenShopIntendedSiteSelectionTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_intended_site_selection', function (Blueprint $table) {
            $table->string('wgNumber', 24)->default('')->comment('网规编号');
            $table->string('type', 36)->default('')->comment('网规类型');
            $table->unsignedTinyInteger('status')->default(0)->comment('跟进状态');
            $table->unsignedInteger('followUpUserId')->default(0)->comment('跟进人');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_intended_site_selection', function (Blueprint $table) {
            $table->dropColumn('wgNumber');
            $table->dropColumn('type');
            $table->dropColumn('status');
            $table->dropColumn('followUpUserId');
        });
    }
}
